// @ts-ignore
/* eslint-disable */
import  request  from '@/requestConfig';

/** addQuotationData POST /api/quotation_data/add */
export async function addQuotationDataUsingPost(
  body: API.QuotationDataAddRequest,
  options?: { [key: string]: any },
) {
  return request<API.BaseResponseLong_>('/api/quotation_data/add', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** deleteQuotationData POST /api/quotation_data/delete */
export async function deleteQuotationDataUsingPost(
  body: API.DeleteRequest,
  options?: { [key: string]: any },
) {
  return request<API.BaseResponseBoolean_>('/api/quotation_data/delete', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** getQuotationDataById GET /api/quotation_data/get */
export async function getQuotationDataByIdUsingGet(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.getQuotationDataByIdUsingGETParams,
  options?: { [key: string]: any },
) {
  return request<API.BaseResponseQuotationData_>('/api/quotation_data/get', {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

/** getQuotationDataVOById GET /api/quotation_data/get/vo */
export async function getQuotationDataVoByIdUsingGet(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.getQuotationDataVOByIdUsingGETParams,
  options?: { [key: string]: any },
) {
  return request<API.BaseResponseQuotationDataVO_>('/api/quotation_data/get/vo', {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

/** listQuotationDataByPage POST /api/quotation_data/list/page */
export async function listQuotationDataByPageUsingPost(
  body: API.QuotationDataQueryRequest,
  options?: { [key: string]: any },
) {
  return request<API.BaseResponsePageQuotationData_>('/api/quotation_data/list/page', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** listQuotationDataVOByPage POST /api/quotation_data/list/page/vo */
export async function listQuotationDataVoByPageUsingPost(
  body: API.QuotationDataQueryRequest,
  options?: { [key: string]: any },
) {
  return request<API.BaseResponsePageQuotationDataVO_>('/api/quotation_data/list/page/vo', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** captureQuote GET /api/quotation_data/quotation/capture_quote */
export async function captureQuoteUsingGet(options?: { [key: string]: any }) {
  return request<API.BaseResponseBoolean_>('/api/quotation_data/quotation/capture_quote', {
    method: 'GET',
    ...(options || {}),
  });
}

/** getQuotationRecommend POST /api/quotation_data/quotation/recommend */
export async function getQuotationRecommendUsingPost(
  body: API.QuotationDataRecommendQuery,
  options?: { [key: string]: any },
) {
  return request<API.BaseResponseQuotationDataRecommendVO_>(
    '/api/quotation_data/quotation/recommend',
    {
      method: 'POST',
      headers: {
        'Content-Type': 'application/json',
      },
      data: body,
      ...(options || {}),
    },
  );
}

/** getQuotationStatistics POST /api/quotation_data/quotation/statistics */
export async function getQuotationStatisticsUsingPost(
  body: API.QuotationStatisticsQuery,
  options?: { [key: string]: any },
) {
  return request<API.BaseResponseQuotationStatistics_>('/api/quotation_data/quotation/statistics', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** updateQuotationData POST /api/quotation_data/update */
export async function updateQuotationDataUsingPost(
  body: API.QuotationDataUpdateRequest,
  options?: { [key: string]: any },
) {
  return request<API.BaseResponseBoolean_>('/api/quotation_data/update', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}
